package com.github.xuemingyu.springboot.acticitycloud.dao;

import com.github.xuemingyu.springboot.acticitycloud.entity.SakuraEntryForm;
import com.github.xuemingyu.springboot.jkfaststart.repository.BaseJPA;

import java.util.List;

/**
 * \* Created with IntelliJ IDEA.
 * \* User: xmy
 * \* Date: 2019/1/28
 * \* Time: 10:18
 * \
 */
public interface SakuraEntryFormDao extends BaseJPA<SakuraEntryForm> {
    SakuraEntryForm findFirstByUserIdAndSignStatusAndActivityId(String userId, String signStatus, Long activityId);
    List<SakuraEntryForm> findAllByActivityIdAndSignStatus(Long activityId,String status);
    void deleteAllByActivityId(Long activityId);
}
